public class InitialStateHandler implements StateHandler {
    private final StateMachine stateMachine;

    public InitialStateHandler(StateMachine stateMachine) {
        this.stateMachine = stateMachine;
    }

    @Override
    public void handleChar(char ch, StringBuilder currentString, StateMachine stateMachine) {
        if (ch == '"') {
            stateMachine.setState(State.IN_STRING);
        }
    }
}